﻿using AppService.IService.System_numbering;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace WebAPI.Controllers.System_numbering
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class BHController : ControllerBase
    {
        public IBHService bHService { get; set; }

        /// <summary>
        /// 自动编号
        /// </summary>
        /// <param name="prefix"></param>
        /// <param name="en_time"></param>
        /// <returns></returns>
        [HttpGet]
        public string BHGZ(string prefix)
        {
            return bHService.BHGZ(prefix);
        }

        /// <summary>
        /// 查BH
        /// </summary>
        /// <param name="prefix"></param>
        /// <returns></returns>
        [HttpGet]
        public int GetBH(string prefix)
        {
            return bHService.GetBH(prefix);
        }
    }
}
